package com.handu.luna.core.domain.goods;

import javax.persistence.Entity;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import com.handu.luna.core.domain.BasePersistentDomain;
@Entity
public class Album extends BasePersistentDomain<AlbumRepository>{

	private long goodId;//链接商品的ID
	
	private String  picDescription;//图片描述
	
	@Min(value = 0, message = "取值范围:0~255,包含0,不包含255。")
	@Max(value = 254, message = "取值范围:0~255,包含0,不包含255。")
	private int picSort = 100;//图片排序
	
	private String picAddress;//图片地址
	
	private String picLink;//图片链接
	
	public Album(){}

	public Album(String picDescription, int picSort, String picAddress,
			String picLink,long goodId) {
		super();
		this.picDescription = picDescription;
		this.picSort = picSort;
		this.picAddress = picAddress;
		this.picLink = picLink;
		this.goodId = goodId;
	}

	public String getPicDescription() {
		return picDescription;
	}

	public void setPicDescription(String picDescription) {
		this.picDescription = picDescription;
	}

	public int getPicSort() {
		return picSort;
	}

	public void setPicSort(int picSort) {
		this.picSort = picSort;
	}

	public String getPicAddress() {
		return picAddress;
	}

	public void setPicAddress(String picAddress) {
		this.picAddress = picAddress;
	}

	public String getPicLink() {
		return picLink;
	}

	public void setPicLink(String picLink) {
		this.picLink = picLink;
	}

	public long getGoodId() {
		return goodId;
	}

	public void setGoodId(long goodId) {
		this.goodId = goodId;
	}
	
}
